<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我在HCM</title>
    <link rel="icon" href="/favicon.ico" sizes="64x64">
    <link rel="stylesheet" href="/static/onboarding.css">
    
</head>
<body>
    <div id="root"></div>
    <script>
      var mainJsName = 'onboarding'
      function getPolyfill() {
        return !''.startsWith;
      }
      function GetIEVersion() {
        var sAgent = window.navigator.userAgent;
        var Idx = sAgent.indexOf("MSIE");
        if (Idx > 0) 
          return parseInt(sAgent.substring(Idx+ 5, sAgent.indexOf(".", Idx)));
        else if (!!navigator.userAgent.match(/Trident\/7\./)) 
          return 11;
        else
          return 0; 
       }
      function setJs(name) {
        var js = document.createElement('script'); 
        js.type = 'text/javascript'; 
        js.src = '/static/'+ name +'.js';
        if(js.readyState){ 
          js.onreadystatechange = function(){ 
            if (js.readyState == "loaded" || js.readyState == "complete"){ 
              document.body.appendChild(js); 
            } 
          }; 
        }else{ 
          document.body.appendChild(js); 
        } 
        
      }
      var ieVersion = GetIEVersion();
      if(ieVersion > 9) {
        window.onload=function(){
          document.body.setAttribute("data-role","ie");
        }
      }else if(ieVersion > 0){
        location.href = 'https://app.wozaihcm.com/outdatebrowser.html';
      }
      if(getPolyfill()){
        setJs('polyfill')
        
      }
      setJs(mainJsName)
    </script>
</body>
</html>
